package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class iPhone implements Serializable {
    private Integer iphoneId;
    private String iphoneName;
    private Double price;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date date;

    public iPhone() {
    }

    public iPhone(Integer iphoneId, String iphoneName, Double price, Integer status, Date date) {
        this.iphoneId = iphoneId;
        this.iphoneName = iphoneName;
        this.price = price;
        this.status = status;
        this.date = date;
    }

    public Integer getIphoneId() {
        return iphoneId;
    }

    public void setIphoneId(Integer iphoneId) {
        this.iphoneId = iphoneId;
    }

    public String getIphoneName() {
        return iphoneName;
    }

    public void setIphoneName(String iphoneName) {
        this.iphoneName = iphoneName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "iPhone{" +
                "iphoneId=" + iphoneId +
                ", iphoneName='" + iphoneName + '\'' +
                ", price=" + price +
                ", status=" + status +
                ", date=" + date +
                '}';
    }
}
